define(function (require, exports, module) {



    require("components/card/index.js");


    var VueComponent = new Vue({
        el: '#app',
        data: {
            api_info: {},
            tableData_01: [],
            tableData_03: [],
            tableData_02: []
        },
        methods: {
            handleEditClick: function (row, type) {
                var config = {
                    url: '08-apiInfo.html',
                    menuName: row.cnName
                };
                this.openWin(config);
            }

        },
        created: function () {

            var map = this.GetUrlParamsMap();
            var api_id = map["api_id"] || 0;



            var api = require("config/api.js");

            var a = _.find(api.cube_api, function (item) {
                return item.cube_id.toString() == api_id.toString();
            });





            if (api_id < 2003)  //未登陆状态下
            {
                this.tableData_01 = _.filter(api.api_info_sys, function (item) {
                    return item.needLogin == false; //显示声明
                })
            } else {
                this.tableData_01 = _.filter(api.api_info_sys, function (item) {
                    return item.needLogin != false
                })
            }

            this.tableData_02 = api.get_api_info_request(api_id);
            this.tableData_03 = api.get_api_info_response(api_id);

        }

    });

});